//引入二次封装的axios文件
import request from '@/utils/request'
//sku列表
// /admin/product/list/{page}/{limit}
export const reqSkuList = (page,limit)=>request({url:`/admin/product/list/${page}/${limit}`,method:'get'})
//产品上架接口
// /admin/product/onSale/{skuId}
export const reqSale = (skuId)=>request({url:`/admin/product/onSale/${skuId}`,method:'get'})
//产品下架接口
// /admin/product/cancelSale/{skuId}
export const reqcancelSale = (skuId)=>request({url:`/admin/product/cancelSale/${skuId}`,method:'get'})
//产品详细信息接口
// /admin/product/getSkuById/{skuId}
export const reqSkuById = (skuId) => request({url:`/admin/product/getSkuById/${skuId}`,method:'get'})
//删除sku商品接口
// /admin/product/deleteSku/{skuId}
export const reqDelSku = (skuId)=>request({url:`/admin/product/deleteSku/${skuId}`,method:'delete'})